home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Invenzioni & Inventori
/
Invenzioni and Inventori (Eclectica Publishing) (1996).ISO
/
invenzio
/
tori
/
sharedi.cst
/
03120_Script_3120
< prev
Wrap
Text File
|
1983-01-27
|
2KB
|
41 lines
on gestione_cursore_articolo
global ss,valore
set a to the mousev
if a > 66 and a <= 440 then
set unita to 378.0 / the lineCount of member "articolo"
set the locv of sprite 16 to a
if ss < integer((a-64) / unita) then
global qrighe_rimane
if voidp (qrighe_rimane) then set qrighe_rimane to 1
if the scrolltop of member 700 < (the lineCount of member "articolo" * valore)-(valore*qrighe_rimane+1) then
set the scrollTop of member "articolo" to the scrolltop of member "articolo" + (valore * (integer((a-64) / unita)-ss))
set ss to integer((a-64) / unita)
end if
-- scrollbyline member "articolo", integer((a-64) / unita)-ss
end if
if ss > integer((a-64) / unita) then
if the scrolltop of member 700 > 1 then
set the scrollTop of member "articolo" to the scrolltop of member "articolo" + (valore * (integer((a-64) / unita)-ss))
-- scrollbyline member "articolo", integer((a-64) / unita) - ss
set ss to integer((a-64) / unita)
end if
end if
updatestage
else
if the mousev <= 66 then
set the scrolltop of member 700 to 1
set the locv of sprite 16 to 64
set ss to 1
updatestage
else
global qrighe_rimane
if voidp (qrighe_rimane) then set qrighe_rimane to 1
set the scrolltop of member 700 to (the lineCount of member 700 * valore)-(valore*qrighe_rimane)
set the locv of sprite 16 to 440
set ss to (the linecount of member 700 - qrighe_rimane)
updatestage
end if
end if
end